home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / dix / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-14  |  3.2 KB  |  100 lines

  1. /************************************************************
  2. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  3. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its 
  8. documentation for any purpose and without fee is hereby granted, 
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in 
  11. supporting documentation, and that the names of Digital or MIT not be
  12. used in advertising or publicity pertaining to distribution of the
  13. software without specific, written prior permission.  
  14.  
  15. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  16. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  17. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  18. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  20. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21. SOFTWARE.
  22.  
  23. ********************************************************/
  24.  
  25. /* $XConsortium: globals.c,v 1.47 89/12/07 20:33:48 keith Exp $ */
  26.  
  27. #include "X.h"
  28. #include "Xmd.h"
  29. #include "misc.h"
  30. #include "windowstr.h"
  31. #include "scrnintstr.h"
  32. #include "input.h"
  33. #include "dixfont.h"
  34. #include "site.h"
  35. #include "dixstruct.h"
  36. #include "os.h"
  37.  
  38. ScreenInfo screenInfo;
  39. KeybdCtrl defaultKeyboardControl = {
  40.     DEFAULT_KEYBOARD_CLICK,
  41.     DEFAULT_BELL,
  42.     DEFAULT_BELL_PITCH,
  43.     DEFAULT_BELL_DURATION,
  44.     DEFAULT_AUTOREPEAT,
  45.     DEFAULT_AUTOREPEATS,
  46.     DEFAULT_LEDS};
  47.  
  48. PtrCtrl defaultPointerControl = {
  49.     DEFAULT_PTR_NUMERATOR,
  50.     DEFAULT_PTR_DENOMINATOR,
  51.     DEFAULT_PTR_THRESHOLD};
  52.  
  53. ClientPtr *clients;
  54. ClientPtr  serverClient;
  55. int  currentMaxClients;   /* current size of clients array */
  56.  
  57. WindowPtr *WindowTable;
  58.  
  59. unsigned long globalSerialNumber = 0;
  60. unsigned long serverGeneration = 0;
  61.  
  62. /* these next four are initialized in main.c */
  63. long ScreenSaverTime;
  64. long ScreenSaverInterval;
  65. int  ScreenSaverBlanking;
  66. int  ScreenSaverAllowExposures;
  67.  
  68. long defaultScreenSaverTime = DEFAULT_SCREEN_SAVER_TIME;
  69. long defaultScreenSaverInterval = DEFAULT_SCREEN_SAVER_INTERVAL;
  70. int  defaultScreenSaverBlanking = DEFAULT_SCREEN_SAVER_BLANKING;
  71. int  defaultScreenSaverAllowExposures = DEFAULT_SCREEN_SAVER_EXPOSURES;
  72. #ifndef NOLOGOHACK
  73. int  logoScreenSaver = DEFAULT_LOGO_SCREEN_SAVER;
  74. #endif
  75.  
  76. char *defaultFontPath = COMPILEDDEFAULTFONTPATH;
  77. char *defaultTextFont = COMPILEDDEFAULTFONT;
  78. char *defaultCursorFont = COMPILEDCURSORFONT;
  79. char *rgbPath = RGB_DB;
  80. char *defaultDisplayClass = COMPILEDDISPLAYCLASS;
  81. FontPtr defaultFont;   /* not declared in dix.h to avoid including font.h in
  82.             every compilation of dix code */
  83. CursorPtr rootCursor;
  84. ClientPtr requestingClient;    /* XXX this should be obsolete now, remove? */
  85.  
  86. TimeStamp currentTime;
  87.  
  88. Bool permitOldBugs = FALSE; /* turn off some error checking, to permit certain
  89.                  * old broken clients (like R2/R3 xterms) to work
  90.                  */
  91.  
  92. int defaultColorVisualClass = -1;
  93. int monitorResolution = 0;
  94.  
  95. char *display;
  96.  
  97. long TimeOutValue = DEFAULT_TIMEOUT * MILLI_PER_SECOND;
  98. int    argcGlobal;
  99. char    **argvGlobal;
  100.